package com.neu.questionnaireplus.service.impl;

import com.neu.questionnaireplus.dao.GroupToAnswererDao;
import com.neu.questionnaireplus.entity.GroupToAnswerer;
import com.neu.questionnaireplus.service.GroupToAnswererService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;

public class GroupToAnswererServiceImpl implements GroupToAnswererService {

  @Autowired
  private GroupToAnswererDao groupToAnswererDao;

  @Override
  public List<GroupToAnswerer> queryRelationshipByGroupId(String groupId) {
    return groupToAnswererDao.queryRelationshipByGroupId(groupId);
  }

  @Override
  public List<GroupToAnswerer> queryRelationshipByAnswererId(String answererId) {
    return groupToAnswererDao.queryRelationshipByAnswererId(answererId);
  }
}
